﻿<!DOCTYPE html>
<html>
<head>
<title>发票补打</title>
<meta charset="utf-8">
<meta name="keywords" content="短照中心-湘潭市康复养老中心;">
<meta name="description" content="短照中心-湘潭市康复养老中心;">
<link rel="stylesheet" rev="stylesheet" href="css/framepage.css" type="text/css" media="screen,print" />
<link rel="stylesheet" type="text/css" href="js/waitBox/wait.css">
<script src="js/vue.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/JSON-js-master/json2.js"></script>
<script src="js/waitBox/wait.js"></script>
<script src="js/purl.js"></script>
<style type="text/css">
@media print {
.no_print {
	display: none;
}
@page {
margin: 0 10mm 0;size:auto;
}

.form_div_kk {
width:auto;height:auto;margin-left:10mm;font-size:12pt;color:494C57;
}
.form_div_kk h3{width:auto;height:10mm;text-left:left;font-size:14pt;color:#333333;border-bottom:1px solid #B1B1B1;}
.form_div_kk ul {
	width:190mm;margin-top: 0;
}
.form_div_kk ul li{width:auto;height:7mm;line-height:7mm;position:relative;float:left;display:block;margin-right:5mm;}
.form_div_kk ul li span{display:inline;line-height:7mm;}
.form_div_kk ul li .tit{display:block;line-height:7mm;}

}

@media screen{

.form_div_kk {
width:auto;height:auto;margin-left:60px;font-size:14px;color:494C57;
}
.form_div_kk h3{width:auto;height:40px;text-left:left;font-size:16px;color:#333333;border-bottom:1px solid #B1B1B1;}
.form_div_kk ul {
	width:1000px;margin-top: 0;
}
.form_div_kk ul li{width:auto;height:50px;line-height:50px;position:relative;float:left;display:block;margin-right:20px;}
.form_div_kk ul li span{display:inline;}
.form_div_kk ul li .tit{display:block;line-height:40px;}

}
</style>
</head>

<body style="background:rbg(216,216,216);">
<div class="form_div no_print">
  <h3>发票补打</h3>
  <ul>
    <li><span class="tit" style="width:70px;">选择对象：</span></li>
    <li style="line-height:36px;"><span>
      <input type="text" placeholder="请输入长者姓名或身份证" id="searchVal" style="width:220px;position:absolute;top:0;left:0;"/>
      </span><span style="position:absolute;left:235px;top:0;">
      <input type="button" value="查询" class="button_s button1" onclick="find_elder_history();" style="height:36px;" />
      </span></li>
  </ul>
  <div style="clear:both;"></div>
  <div class="no_print" style="margin:0;padding:0;" id="vue_vm_list_radio">
    <div style="margin:0;padding:0;" v-for="todo in todos">
      <ul>
        <li style="width:100px;"><span style="display:block;position:absolute;top:12px;left:0;">
          <input class="magic-radio" type="radio" name="elderId" v-bind:id="todo.beHospitalId"
           v-bind:value="todo.elderForm.elderId" v-bind:elderName="todo.elderForm.name" v-bind:cardId="todo.elderForm.cardId"
           v-bind:beHospitalId="todo.beHospitalId"  v-bind:beDate="todo.beDate" v-bind:outDate="todo.outDate"/>
          <label v-bind:for="todo.beHospitalId" class="label_txt" style="color:#009688">{{todo.elderForm.name}}</label>
          </span></li>
        <li><span>身份证号：{{todo.elderForm.cardId}}</span></li>
        <li><span>{{todo.beStatus==2?'已出院':todo.beStatus==1?'正在出院':'住院中'}}</span></li>
        <li><span>住院开始日期：{{todo.beDate}}</span></li>
        <li v-if="todo.beStatus==2"><span>住院结束日期：{{todo.outDate}}</span></li>
        <li><span><a v-bind:href="getChepingUrl(todo.elderForm.elderId, todo.elderForm.name, todo.elderForm.cardId)" target="_blank">测评资料</a></span></li>
        <li><span><a v-bind:href="'2-1-1basedata-geren.html?elderId='+todo.elderForm.elderId" target="_blank">个人资料</a></span></li>
        <li><span><a v-bind:href="'2-1-1basedata-jiaren.html?elderId='+todo.elderForm.elderId" target="_blank">家属资料</a></span></li>
        <li><span><a v-bind:href="'2-1-1basedata-lianxi.html?elderId='+todo.elderForm.elderId" target="_blank">紧急联系人资料</a></span></li>
      </ul>
    </div>
  </div>
  <div style="clear:both;"></div>
  <ul>
    <li><span class="tit" style="width:70px;">住院数据：</span></li>
    <li style="line-height:36px;"><span>
      <input type="button" value="查询" class="button_s button1" onclick="findElderPayList();" style="height:36px;" />
      </span></li>
  </ul>

</div>
<div class="list_div" id="vue_vm_list_inventory">
  <div class="for_ie_div no_print"><!--为兼容IE-->
    <ul>
      <!--
      <li style="width:160px;">
        <input type="button" value="清单统计打印" class="button button1" v-on:click="openTotalPage();" style="height:38px;"/>
      </li>
      <li style="width:160px;">
        <input type="button" value="直接打印" class="button button1" onclick="window.print();" style="height:38px;"/>
      </li>
      -->
      <li style="width:160px;">
        <input type="button" value="打印收费凭据" class="button button1" v-on:click="openPrintPage(5);" style="height:38px;"/>
      </li>
      <!--<li style="width:160px;">-->
        <!--<input type="button" value="打印发票" class="button button1" v-on:click="openPrintPage(5);" style="height:38px;"/>-->
      <!--</li>-->
    </ul>
  </div>
  <div class="form_div_kk" style="margin:0;padding:0;" v-for="todo in todos">
    <h3>入院号：{{todo.elderBeHospitalForm.beNumber}}</h3>
    <ul v-if="todo.elderBeHospitalForm.elderForm.isFinancialCs==1">
      <li><span class="tit" style="width:70px;">金融客户：</span></li>
      <li><span>银行：{{todo.elderBeHospitalForm.elderForm.bankName}}</span></li>
      <li><span>联系人：{{todo.elderBeHospitalForm.elderForm.contactName}}</span></li>
      <li><span>联系电话：{{todo.elderBeHospitalForm.elderForm.contactPhoneNumer}}</span></li>

    </ul>

    <ul><!-- 新增的余额相关 -->
        <li><span>押金：{{todo.pledge}}元</span></li>
        <li><span>预缴款合计：{{todo.prePay}}元</span></li>
        <li><span>总费用：{{todo.totalFee}}元</span></li>
        <li><span>钱包余额：{{todo.elderWalletForm.walletBalance}}元</span></li>
        <li><span>保床退费：{{todo.returnMoney?todo.returnMoney:0}}元</span></li>
        <li><span>饭卡余额：{{todo.mealCardForm.balance}}元</span></li>
    </ul>

    <ul>
      <li style="width:70px;"><span>{{todo.elderBeHospitalForm.elderForm.name}}</span></li>
      <li><span>{{todo.elderBeHospitalForm.buildingName}} {{todo.elderBeHospitalForm.floorName}} {{todo.elderBeHospitalForm.roomNumber}}室 {{todo.elderBeHospitalForm.bedNumber}}床</span></li>
      <li><span style="color:#ff0000;">科室负责人：{{todo.elderBeHospitalForm.subjectRoomManager}}</span></li>
    </ul>
    <div style="clear:both;"></div>
    <h3>费用</h3>
    <div class="form_div_kk" style="margin:0;padding:0;" v-for="elderPayRecordForm in todo.elderPayRecordForms">
      <ul>
        <li><span>{{elderPayRecordForm.payDate}}</span></li>
        <li><span>{{elderPayRecordForm.costDesc}}：{{elderPayRecordForm.payMoney}}元</span></li>
        <li><span>操作人：{{elderPayRecordForm.handler}}</span></li>
        <li><span>状态：{{elderPayRecordForm.payStatus==1?'成功':(elderPayRecordForm.payStatus==2?'失败':'已退费')}}（{{elderPayRecordForm.payWay==1? '现金': (elderPayRecordForm.payWay==2? '钱包': 'VIP卡')}}）
        {{(elderPayRecordForm.arrearageDesc==null || elderPayRecordForm.arrearageDesc=='')? '': '（' + elderPayRecordForm.arrearageDesc + '）'}}</span></li>
      </ul>
    </div>
    <div class="form_div_kk">
    <ul>
      <li><span>合计</span></li>
      <li><span>总额{{(getElderPayRecordTotalMoney(todo.elderPayRecordForms)+getElderArrearageTotalMoney(todo.elderArrearageForms)).toFixed(3)}}元</span></li>
      <li><span>实缴{{getElderPayRecordTotalMoney(todo.elderPayRecordForms).toFixed(3)}}元</span></li>
    </ul>
    </div>
    <div style="clear:both;"></div>
    <div class="form_div_kk"><span>欠费情况：</span></div>
    <div class="form_div_kk" style="margin:0;padding:0;" v-if="todo.elderArrearageForms==null || todo.elderArrearageForms.length==0">
    	<ul>
            <li><span>无欠费</span></li>
      </ul>
    </div>
    <div class="form_div_kk" style="margin:0;padding:0;" v-for="elderArrearageForm in todo.elderArrearageForms">
      <ul>
        <li><span>欠费项目：{{elderArrearageForm.arrearageDesc}}</span></li>
        <li><span>欠费金额：{{elderArrearageForm.arrearageMoney}}元</span></li>
        <li><span>欠费原因：{{elderArrearageForm.arrearageReason}}</span></li>
      </ul>
    </div>
  </div>
</div>
<script src="js/common.js"></script>
<script src="js/common_function.js"></script>
<script src="js/common_date.js"></script>
<script src="js/busi/elder_query.js"></script>
<script src="js/busi/elder_pay_record.js"></script>
<script src="js/busi/3-7-9ls_buda.js"></script>
</body>
</html>